package com.jp.knowledge.model;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by 528787067@qq.com on 2017/2/15.
 * 用于保存网络请求数据
 */
@Table(name = "net_local_msg")
public class NetLogModel extends BaseDb {

    @Column(name = "TYPE")
    private String type;
    @Column(name = "REQUEST_TIME")
    private String requestTime;
    @Column(name = "RESPONSE_TIME")
    private String responseTime;
    @Column(name = "URL")
    private String url;
    @Column(name = "PARAM")
    private String requestParam;
    @Column(name = "ERROR_CODE")
    private int errorCode;
    @Column(name = "MESSAGE")
    private String message;

    public NetLogModel(){
        errorCode = -1;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(String requestTime) {
        this.requestTime = requestTime;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
